<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>上机3</title>
	</head>
	<body>
		<script type="text/javascript">
		function Person(){
			this.nation="汉族";
			this.color="黄色";
		}
		Person.prototype.a=function(){
			return this.nation;
		}
		Person.prototype.b=function(){
			return this.color;
		}
		function People(){
			
		}
		People.prototype=new Person();
		People.prototype.sex="女";
		People.prototype.c=function(){
			return this.sex;
		}
		var man=new People();
		document.write("名族："+man.a()+"<br />");
		document.write("肤色："+man.b()+"<br />");
		document.write("性别："+man.c()+"<br />");
		
	</script>
	</body>
</html>
